aboutsummaryrefslogtreecommitdiff
path: root/src/pages/board/[board]
diff options
context:
space:
mode:
authorkartofen <mladenovnasko0@gmail.com>2022-08-28 23:22:15 +0300
committerkartofen <mladenovnasko0@gmail.com>2022-08-28 23:22:15 +0300
commit9d952483f250a97cbeab4061fa1c4e68341b330f (patch)
tree9d094911dc5178db9375eaa661e7f4bf0d5bf2cc /src/pages/board/[board]
parent35b06b4fc851192916e000ad5e7e2f458846448c (diff)
posting thread and image works
Diffstat (limited to 'src/pages/board/[board]')
-rw-r--r--src/pages/board/[board]/[tid].astro11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/pages/board/[board]/[tid].astro b/src/pages/board/[board]/[tid].astro
index 80e7fbe..4aa34ef 100644
--- a/src/pages/board/[board]/[tid].astro
+++ b/src/pages/board/[board]/[tid].astro
@@ -1,7 +1,7 @@
---
import Default from '../../../layouts/Default.astro';
import Thread from '../../../components/Thread.svelte'
-import Comment from '../../../components/Comment.svelte'
+import '../../../styles/thread.css'
import type Thread from '../../../models/Thread';
import { api } from '../../../lib/api';
@@ -14,13 +14,8 @@ if(data.status === 404) return Astro.redirect('/404');
const thread: Thread = await data.json();
await processThreadIn(board, thread, true);
-const comments: Comment[] = thread.comments;
---
<Default>
- <Thread thread={thread} board={board}>
- {comments.map((comment) => (
- <Comment comment={comment} />
- ))}
- </Thread>
-</Default>
+ <Thread thread={thread} board={board} comments=true />
+</Default> \ No newline at end of file